/**
 * desc: 消息接口
 */

import request from '@/static/uitls/request.js'

// 消息列表
const getTMessageList = () => {
	return request({
		url: '/teacher/v1/remind/index',
		method: 'GET'
	})
}

// 课程提醒

const getTCourseList = data => {
	return request({
		url: '/teacher/v1/remind/course',
		method: 'GET',
		data
	})
}
// 课程提醒已读
const getTCourseReading = id => {
	return request({
		url: '/teacher/v1/remind/courseReading?remind_course_id='+id,
		method: 'GET',
		requestNum:false // 不计算请求数
	})
}
// 订单提醒
const getTOrderMessgaeList = data => {
	return request({
		url: '/teacher/v1/remind/order',
		method: 'GET',
		data
	})
}

// 订单提醒已读
const getTOrderReading = id => {
	return request({
		url: '/teacher/v1/remind/orderReading?remind_order_id='+id,
		method: 'GET',
		requestNum:false // 不计算请求数
	})
}

module.exports = {
	getTMessageList,
	getTCourseList,
	getTCourseReading,
	getTOrderMessgaeList,
	getTOrderReading
}
